import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson
} from '../utils/request';
//用户登录
export function _login(data) {
  return postJosn('/api/user-service/v1/auth/login', data);
}

//获取登录页信息
export function logininfo(data) {
  return postJosn('/v1/auth/login', data);
}

//申请店铺
export function shopAuth(data) {
  return postJosn('/api/user-service/v1/review/shopAuth', data);
}

//获取申请详情
export function shopAuthdetail(data) {
  return get('/api/user-service/v1/review/getStoreByAuthCode', data);
}

//获取修改申请详情
export function getReviewId(data) {
  return get('/api/user-service/v1/review/getReviewId', data);
}


//获取验证码
export function sendVerificationCode(data) {
  return postJosn('/api/user-service/v1/auth/sendVerificationCode', data);
}


//设置密码
export function resetPassword(data) {
  return postJosn('/api/user-service/v1/auth/resetPassword', data);
}

// 获取唯一标识
export function getGenerateCookie() {
  return get('/api/user-service/v1/imageverifyCode/generateCookie');
}

// 获取随机码
export function getVerificationCode(data) {
  return get('/api/user-service/v1/imageverifyCode/getImageCode', data);
}
